﻿@using HiLand.Utility4.MVC.Controls;
@{
    Layout = null;
    int usingModeDisplay = (int)MvcControlUsingModes.Display;
    int usingModeEditable = (int)MvcControlUsingModes.Editable;
}
<style type="text/css">
    .modalFix
    {
        width: 650px;
    }
</style>
<h1>
    Application Summary
</h1>
<dl>
    <dt class="contentTitle">1.Initial Loan Information</dt>
    <dd class="contentContainer">
        <div class="modal modalFix" id="InitialLoanInformationDisplayDIV">
        </div>
        <div id="InitialLoanInformationDIV">
        </div>
        <div>
            <a href="@Url.Action("InitialLoanInformation")">Edit</a></div>
    </dd>
    <dt class="contentTitle">2.AboutTheApplicant(s)</dt>
    <dd class="contentContainer">
        <div class="modal modalFix" id="AboutTheApplicantsDisplayDIV">
        </div>
        <div id="AboutTheApplicantsDIV">
        </div>
        <div>
            <a href="@Url.Action("AboutTheApplicants")">Edit</a></div>
    </dd>
    <dt class="contentTitle">3.About Your Business</dt>
    <dd class="contentContainer">
        <div class="modal modalFix" id="AboutYourBusinessDisplayDIV">
        </div>
        <div id="AboutYourBusinessDIV">
        </div>
        <div>
            <a href="@Url.Action("AboutYourBusiness")">Edit</a></div>
    </dd>
    <dt class="contentTitle">4.Liability Statement</dt>
    <dd class="contentContainer">
        <div class="modal modalFix" id="LiabilityStatementDisplayDIV">
        </div>
        <div id="LiabilityStatementDIV">
        </div>
        <div>
            <a href="@Url.Action("LiabilityStatement")">Edit</a></div>
    </dd>
    <dt class="contentTitle">5.Asset Statement</dt>
    <dd class="contentContainer">
        <div class="modal modalFix" id="AssetStatementDisplayDIV">
        </div>
        <div id="AssetStatementDIV">
        </div>
        <div>
            <a href="@Url.Action("AssetStatement")">Edit</a></div>
    </dd>
    <dt class="contentTitle">6.About The Securities</dt>
    <dd class="contentContainer">
        <div class="modal modalFix" id="AboutTheSecuritiesDisplayDIV">
        </div>
        <div id="AboutTheSecuritiesDIV">
        </div>
        <div>
            <a href="@Url.Action("AboutTheSecurities")">Edit</a></div>
    </dd>
    <dt class="contentTitle">7.Business Bank Details</dt>
    <dd class="contentContainer">
        <div class="modal modalFix" id="BusinessBankDetailsDisplayDIV">
        </div>
        <div id="BusinessBankDetailsDIV">
        </div>
        <div>
            <a href="@Url.Action("BusinessBankDetails")">Edit</a></div>
    </dd>
</dl>
<div id="outterFormContainer">
    @using (Html.BeginForm())
    {
        <input type="hidden" name="onlyPlaceHolder" value="onlyPlaceHolder" />
    }
</div>
<script src="@Url.Content("~/Scripts/jQuery.effect.TitleContent.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jQuery.gbfSubmit.js")" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $.effectTitleContent();
        $(".modalInput").overlay({
            mask: {
                color: '#ebecff',
                loadSpeed: 200,
                opacity: 0.9
            },
            closeOnClick: false,
            oneInstance: false
        });

        $("#InitialLoanInformationDIV").load('@Url.Action("UInitialLoanInformation", new { usingMode = usingModeDisplay })');
        //$("#InitialLoanInformationDisplayDIV").load('@Url.Action("UInitialLoanInformation", new { usingMode = usingModeEditable, isPopLayer = true })');

        $("#AboutTheApplicantsDIV").load('@Url.Action("UApplicantList", new { usingMode = usingModeDisplay })');
        //$("#AboutTheApplicantsDisplayDIV").load('@Url.Action("UApplicantList", new { usingMode = usingModeEditable, isPopLayer = true })');

        $("#AboutYourBusinessDIV").load('@Url.Action("UAboutYourBusiness", new { usingMode = usingModeDisplay })');
        //$("#AboutYourBusinessDisplayDIV").load('@Url.Action("UAboutYourBusiness", new { usingMode = usingModeEditable, isPopLayer = true })');

        $("#LiabilityStatementDIV").load('@Url.Action("ULiabilityStatementList", new { usingMode = usingModeDisplay, isPopLayer = true })');
        //$("#LiabilityStatementDisplayDIV").load('@Url.Action("ULiabilityStatementWrapper", new { usingMode = usingModeEditable, isPopLayer = true })');

        $("#AssetStatementDIV").load('@Url.Action("UAssetStatementList", new { usingMode = usingModeDisplay })');
        //$("#AssetStatementDisplayDIV").load('@Url.Action("UAssetStatementList", new { usingMode = usingModeEditable, isPopLayer = true })');

        $("#AboutTheSecuritiesDIV").load('@Url.Action("UAboutTheSecuritiesList", new { usingMode = usingModeDisplay })');
        //$("#AboutTheSecuritiesDisplayDIV").load('@Url.Action("UAboutTheSecuritiesList", new { usingMode = usingModeEditable, isPopLayer = true })');

        $("#BusinessBankDetailsDIV").load('@Url.Action("UBusinessBankDetails", new { usingMode = usingModeDisplay })');
        //$("#BusinessBankDetailsDisplayDIV").load('@Url.Action("UBusinessBankDetails", new { usingMode = usingModeEditable, isPopLayer = true })');
    });
</script>
